package com.itheima.demo;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.itheima.domain.Emp;
import com.itheima.service.EmpService;
import com.itheima.service.impl.EmpServiceImpl;

import java.util.List;

public class Demo2 {
    public static void main(String[] args) {
        EmpService es=new EmpServiceImpl();
        List<Emp> list = es.findAll();

        PageInfo<Emp> pageInfo=new PageInfo<Emp>(list);
        System.out.println(pageInfo.getList());

       /* Emp emp = es.findByNameAndPwd("1", "玉皇大帝");
        System.out.println(emp);*/
    }
}
